{% load filters %}

  <span class="{{type}}-status-summary">
  {% if well_done %}
  <img src="http://www.cameraontheroad.com/images/web/2pxgreen.gif" height="10" width="{{ overall_rating|abs|floatformat:0 }}" alt="Overall rating is {{ overall_rating|abs|floatformat:0 }}" title="Overall rating is {{ overall_rating|abs|floatformat:0 }}"/>
  {% endif %}
  {% if warning %}
  <img src="http://www.cameraontheroad.com/images/web/2pxred.gif" height="10" width="{{ overall_rating|abs|floatformat:0 }}" alt="Overall rating is {{ overall_rating|abs|floatformat:0 }}" title="Overall rating is {{ overall_rating|abs|floatformat:0 }}"/>
  {% endif %}
  </span>

  <span class="{{type}}-status-detail">
    <p>Overall Rating: {{overall_rating}}</p>
    <p>Bad Tasks Count: {{bad_tasks_count}}</p>
    <p>Tasks Rating: {{tasks_rating}}</p>
    <p>Good Deliverables Count: {{good_deliverables_count}}</p>
    <p>Bad Deliverables Count: {{bad_deliverables_count}}</p>
    <p>Deliverables Rating: {{deliverables_rating}}</p>
    <p>Objectives Count: {{objectives_count}}</p>
    <p>Good Objectives Count: {{good_objectives_count}}</p>
    <p>Bad Objectives Count: {{bad_objectives_count}}</p>
    <p>Objectives Rating: {{objectives_rating}}</p>
  </span>

